------------------------------
-- 布局设置
------------------------------

local M = {}

function M.setXY(target, x, y)
	if x then
		target.x = x
	end

	if y then
		target.y = y
	end
end

function M.setAnchor(target, anchorX, anchorY)
	if anchorX then
		target.anchorX = anchorX
	end

	if anchorY then
		target.anchorY = anchorY
	end
end

return M